package com.ruoyi.question.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import java.util.Date;

/**
 * 问题列表对象 e_question
 *
 * @author ruoyi
 * @date 2024-11-26
 */
@Data
@TableName("e_question")
public class EQuestion
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 问题标题 */
    @Excel(name = "问题标题")
    private String questionTitle;

    /** 标题内容 */
    @Excel(name="问题内容")
    private String questionContent;

    /** 客户端 */
    @Excel(name = "客户端")
    private Long clientSide;

    /** 问题分类外键 */
    @Excel(name = "问题分类外键")
    private Long cid;

    /** 语言 */
    @Excel(name = "语言")
    private Long language;

    /** 排序号 */
    @Excel(name = "排序号")
    private Long sequenceNumber;

    /** 创建时间 */
    @Excel(name="创建时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 最后修改时间 */
    @Excel(name="最后修改时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date lastModifiedTime;

    /** 状态 */
    @Excel(name = "状态")
    private Long questionStatus;

    /** 创建开始时间 */
    @TableField(exist = false)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date startCreateTime;

    /** 创建结束时间 */
    @TableField(exist = false)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date endCreateTime;

    /** 问题分类名称 */
    @TableField(exist = false)
    private String questionCategorizationName;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setQuestionTitle(String questionTitle)
    {
        this.questionTitle = questionTitle;
    }

    public String getQuestionTitle()
    {
        return questionTitle;
    }

    public void setQuestionContent(String questionContent){this.questionContent = questionContent;}

    public String getQuestionContent(){return questionContent;}

    public void setClientSide(Long clientSide)
    {
        this.clientSide = clientSide;
    }

    public Long getClientSide()
    {
        return clientSide;
    }
    public void setCid(Long cid)
    {
        this.cid = cid;
    }

    public Long getCid()
    {
        return cid;
    }
    public void setLanguage(Long language)
    {
        this.language = language;
    }

    public Long getLanguage()
    {
        return language;
    }
    public void setSequenceNumber(Long sequenceNumber)
    {
        this.sequenceNumber = sequenceNumber;
    }

    public Long getSequenceNumber()
    {
        return sequenceNumber;
    }
    public void setQuestionStatus(Long questionStatus)
    {
        this.questionStatus = questionStatus;
    }

    public Long getQuestionStatus()
    {
        return questionStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("questionTitle", getQuestionTitle())
                .append("questionContent", getQuestionContent())
                .append("clientSide", getClientSide())
                .append("cid", getCid())
                .append("language", getLanguage())
                .append("sequenceNumber", getSequenceNumber())
                .append("createTime", getCreateTime())
                .append("questionStatus", getQuestionStatus())
                .toString();
    }
}
